package com.xiaoy.core.base.dictionary.entity;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.xiaoy.util.store.config.ConfigTable;

@Entity
@Table(name=ConfigTable.Dic.PROVINCE_TABLENAME)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Province extends DicBaseEntity{

	
	private List<City> citys ;

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "province")
	public List<City> getCitys() {
		return citys;
	}

	public void setCitys(List<City> citys) {
		this.citys = citys;
	}
	
	
}
